package com.woniu;

import com.woniu.conf.SwaggerConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.*;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 *
 * Hello world!
 *
 */
@SpringBootApplication
@Slf4j
@EnableCaching // 开启缓存注解
@EnableScheduling // 开启定时任务
@ComponentScan( // 指定不扫描 com.woniu.rabbit
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.REGEX,
                pattern = "com\\.woniu\\.rabbit\\..*"
        )
)
public class AppApplication {
    // springboot启动类
    public static void main( String[] args )
    {
        SpringApplication.run(AppApplication.class, args);
        log.info("success");
    }

}
